﻿using System;
using System.Web.UI;
using Mobile.Web.DataAccess;
using ListView = Mobile.WebControls.ListView;

namespace Mobile.Web.List
{
    public partial class ReadOnlyCountBubbleListView : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Control control = ControlHelper.GetControlById(mbPage1, "lv");
            if (control is ListView)
            {
                ListView lv = control as ListView;
                lv.DataSource = CarDataAccess.GetCars();
                lv.DataBind();
            }
        }
    }
}